
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<jsp:include page = "../metadatos.jsp" flush = "True" />
<html>
    <head>
        <title>Bienvenido al Sistema ERP MAGR | Nuevo Usuario</title>
    </head>
    <body>
        <div class="wrapper">
            <header class="header">
                <img src="./resources/Logo.PNG" />
            </header><!-- .header-->
            <!-- .Navigation Menu -->
            <jsp:include page = "../menuNavegacion.jsp" flush = "True" />
            <!-- .Navigation Menu -->

            <div class="wrapper">
                <main class="content">
                    <form class="formee" method="post" action="./Users?action=requestData">
                        <fieldset>
                            <legend>Nuevo Partner </legend>
                            <!-- style="height:400px;width:600px" -->
                            <!-- LISTA DE ERRORES -->
                            <c:if test="${principalSistema.nErrores>0}">
                                <div class="formee-msg-error">
                                    <h3>Incidencias:</h3>
                                    <ul>
                                        <c:forEach items="${principalSistema.errores}" var="e">
                                            <li><c:out value="${e}"/></li>
                                            </c:forEach>
                                    </ul>
                                </div> 
                            </c:if>
                            <!-- LISTA DE ADVERTENCIAS-->
                            <c:if test="${principalSistema.nAdvertencias > 0}">
                                <div class="formee-msg-warning">
                                    <h3>Incidencias:</h3>
                                    <ul>
                                        <c:forEach items="${principalSistema.vAdvertencias}" var="w">
                                            <li><c:out value="${w}"/></li>
                                            </c:forEach>
                                    </ul>
                                </div> 
                            </c:if>
                            <div class="grid-6-12">
                                <label>Nombre Usuario<em class="formee-req">*</em></label>
                                <input type="text" name="user" onKeyup="this.value = txtalfanum(this.value)"/>
                            </div>
                            <div class="grid-6-12">
                                <label>Email<em class="formee-req">*</em></label>
                                <input type="text" name="emailUser" onKeyup="this.value = txtalfanum(this.value)"/>
                            </div>
                            <div class="grid-12-12">
                                <label>Password<em class="formee-req">*</em></label>
                                <input type="password" name="pass" onKeyup="this.value = txtalfanum(this.value)"/>
                            </div>
                            <div class="grid-12-12">
                                <label>Repetir Password<em class="formee-req">*</em></label>
                                <input type="password"  name="passAgain" onKeyup="this.value = txtalfanum(this.value)"/>
                            </div>
                            <div class="grid-1-12">
                                <input type="submit" value="Enviar" />
                            </div>
                            <div class="grid-1-12">
                                <input type="reset" value="Limpiar" />
                            </div>
                            <div class="grid-1-12">
                                <input type="button" value="Regresar"  onclick="location.href = './AdminSys?action=principal'"/>
                            </div>
                        </fieldset>
                    </form>
                </main>
            </div>
    </body>
</html>
